import request from '@/plugin/axios'

export function fetchList (query) {
  return request({
    url: '/client/list/batch?pageIndex=1&pageSize=50',
    method: 'get',
    params: query,
    loading: {
      type: 'nprogress',
      interval: 500
    }
  })
}

export function undo(id) {
  return request({
    url: '/client/revoke/' + id,
    method: 'put'
  })
}

export function batchAssign(_param) {
  return request({
    url: '/client/allocationByBatchid',
    method: 'put',
    params:_param
  })
}

export function delImportData(id) {
  return request({
    url: '/bizBatchClientRecord/delete/' + id,
    method: 'put'
  })
}